package nl.saxion.ein4b.model;

/**
 * @author Rick
 * 
 */
public class Card {
	/**
	 * 
	 */
	private final CardType cardType;
	/**
	 * 
	 */
	private final CardColor cardColor;

	/**
	 * @param cardType
	 * @param cardColor
	 */
	public Card(CardType cardType, CardColor cardColor) {
		this.cardType = cardType;
		this.cardColor = cardColor;
	}

	/**
	 * @return
	 */
	public CardColor getcardColor() {
		return cardColor;
	}

	/**
	 * @return
	 */
	public CardType getcardType() {
		return cardType;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return cardType + " of " + cardColor;
	}

	/**
	 * @param card
	 * @return
	 */
	public boolean equals(Card card) {
		if (this.cardColor == card.cardColor && this.cardType == card.cardType)
			return true;
		return false;
	}
}